-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
64 lines (56 loc) · 2.48 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
58
59
60
61
62
63
64
import setuptools
import os
with open("README.md", "r") as fh:
long_description = fh.read()
top_dir, _ = os.path.split(os.path.abspath(__file__))
with open(os.path.join(top_dir, 'Version')) as f:
version = f.readline().strip()
if os.path.isfile(os.path.join(top_dir, 'Version')):
with open(os.path.join(top_dir, 'Version')) as f:
version = f.readline().strip()
else:
import urllib
Vpath = 'https://raw.githubusercontent.com/Nikeshbajaj/Linear_Feedback_Shift_Register/master/Version'
version = urllib.request.urlopen(Vpath).read().strip().decode("utf-8")
setuptools.setup(
name="pylfsr",
version= version,
author="Nikesh Bajaj",
author_email="[email protected]",
description="Linear Feedback Shift Register",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Nikeshbajaj/Linear_Feedback_Shift_Register",
download_url = 'https://github.com/Nikeshbajaj/Linear_Feedback_Shift_Register/tarball/' + version,
packages=setuptools.find_packages(),
license = 'MIT',
keywords = 'lfsr linear-feedback-shift-register random generator gf(2)',
classifiers=[
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Natural Language :: English',
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Information Technology',
'Intended Audience :: Education',
'Intended Audience :: Telecommunications Industry',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Games/Entertainment :: Puzzle Games',
'Topic :: Communications',
'Development Status :: 5 - Production/Stable',
],
project_urls={
'Documentation': 'https://lfsr.readthedocs.io',
'Say Thanks!': 'https://github.com/Nikeshbajaj',
'Source': 'https://github.com/Nikeshbajaj/Linear_Feedback_Shift_Register',
'Tracker': 'https://github.com/Nikeshbajaj/Linear_Feedback_Shift_Register/issues',
},
include_package_data=True,
install_requires=['numpy', 'matplotlib']
)