- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
69 lines (61 loc) · 2.04 KB
/
Copy pathsetup.py
File metadata and controls
69 lines (61 loc) · 2.04 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# coding: utf-8
importos
fromsetuptoolsimportsetup
######################
# beginning of setup
######################
here=os.path.dirname(__file__)
ifhere=="":
here="."
package_data= {
"teachpyx": ["*.txt"],
"teachpyx.datasets.data": ["*.csv", "*.gz", "*.json", "*.txt", "*.zip"],
}
try:
withopen(os.path.join(here, "requirements.txt"), "r") asf:
requirements=f.read().strip(" \n\r\t").split("\n")
exceptFileNotFoundError:
requirements= []
iflen(requirements) ==0orrequirements== [""]:
requirements= ["matplotlib", "numpy", "pandas"]
try:
withopen(os.path.join(here, "README.rst"), "r", encoding="utf-8") asf:
long_description="teachpyx:"+f.read().split("teachpyx:")[1]
exceptFileNotFoundError:
long_description=""
version_str="0.1.0"
withopen(os.path.join(here, "teachpyx/__init__.py"), "r") asf:
line= [
_
for_in [_.strip("\r\n ") for_inf.readlines()]
if_.startswith("__version__")
]
iflen(line) >0:
version_str=line[0].split("=")[1].strip('" ')
# see https://pypi.org/classifiers/
setup(
name="teachpyx",
version=version_str,
description="Programmation Python",
long_description=long_description,
author="Xavier Dupré",
author_email="xavier.dupre@gmail.com",
url="https://github.com/sdpython/teachpyx",
package_data=package_data,
install_requires=requirements,
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Education",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)