-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (51 loc) · 2.06 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
51
52
53
54
55
56
57
from setuptools import setup, find_packages
print("""
- upload
- build wheel: python setup.py bdist_wheel
- upload to server: python setup.py sdist upload -r internal
- download
- Just pip install <package>
""")
if __name__ == '__main__':
packageName ='distrilockper'
try:
with open("requirements.txt", 'r') as file:
requirement = [req.rstrip().replace("==", "==") for req in file.readlines()]
except Exception as e:
with open("{}.egg-info/requires.txt".format(packageName), 'r') as file:
requirement = [req.rstrip() for req in file.readlines()]
pass
setup(
name=packageName,
version='0.0.1-Alpha-03',
description='Distributed Lock with using Redis',
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author='Louis Lui',
author_email='[email protected]',
url='https://gitlab.com/wilsom20012/distributed_lock_helper',
license="MIT License",
packages=find_packages(),
# packages=find_packages(
# exclude='testcase,playground,ReadMe.md,play_lock,requirements.txt'.format(packageName).split(',')),
# package_dir={'': ''},
setup_requires=["setuptools>=31.6.0"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: System :: Software Distribution",
],
include_package_data=True,
keywords=['Lock','Distributed'],
install_requires = requirement,
)