Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (41 loc) · 1.31 KB
/
Copy pathsetup.py
File metadata and controls
53 lines (41 loc) · 1.31 KB
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
#!/usr/bin/env python3
import setuptools
#######
def get_require_modules(given_file):
"""
Get main python requirements modules
"""
with open(given_file, 'r') as f:
myModules = [line.strip().split(',')[0] for line in f]
return myModules
#######
def get_version(version_file):
"""
Original code: PhiSpy setup.py
https://github.com/linsalrob/PhiSpy/blob/master/setup.py
"""
with open(version_file, 'r') as f:
v = f.readline().strip()
return v
long_description_text = ""
with open("README.md", "r") as fh:
long_description_text = fh.read()
setuptools.setup(
name="UPyPac",
version=get_version("./VERSION"),
author="Jose F. Sanchez-Herrero",
description="Useful python functions",
author_email="jfbioinformatics@gmail.com",
long_description_content_type="text/markdown",
long_description=long_description_text,
url="https://github.com/JFsanchezherrero/useful_Python_package",
packages=setuptools.find_packages(),
license='MIT License',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
include_package_data=True,
install_requires=get_require_modules("./UPyPac/config/python_requirements.txt"),
)