-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (46 loc) · 1.54 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
if sys.argv[-1] == "publish":
os.system("python setup.py sdist")
os.system("twine upload dist/* --skip-existing")
sys.exit()
elif sys.argv[-1] == "test":
os.system("python setup.py sdist")
os.system("twine upload -r testpypi dist/* --skip-existing")
sys.exit()
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name='octodir',
version="1.1.0",
description="Tool for downloading directories from Github repositories",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Jalkhov/octodir",
author="Pedro Torcatt",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Natural Language :: English",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
],
keywords="github directory download",
packages=["octodir"],
include_package_data=True,
python_requires=">=3.0",
install_requires=open(
os.path.join(here, "requirements.txt"), encoding="utf-8"
)
.read()
.split("\n"),
project_urls={
"Bug Reports": "https://github.com/Jalkhov/octodir/issues",
"Source": "https://github.com/Jalkhov/octodir/",
},
entry_points={"console_scripts": [
"octodir=octodir.octodir_cli:octodir_cli"]},
)