-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
100 lines (90 loc) · 3.3 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env python
# -*- coding: utf-8; mode: python -*-
"""
setup.py script for the ParcourSup.py project (https://github.com/Naereen/ParcourSup.py)
References:
- https://packaging.python.org/en/latest/distributing/#setup-py
- https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/creation.html#setup-py-description
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
long_description = "ParcourSup.py : un clone en Python 3 de ParcoursSup, écrit à but didactique"
README = path.join(here, "README.rst")
if not path.exists(README):
README = path.join(here, "..", "README.rst")
if not path.exists(README):
README = path.join(here, "README.md")
if not path.exists(README):
README = path.join(here, "..", "README.md")
if path.exists(README):
with open(README, encoding="utf-8") as f:
long_description = f.read()
# print("Using a long_description of length,", len(long_description), "from file", README) # DEBUG
version = "0.2.1"
try:
from parcoursup import __version__ as version
except ImportError:
print("Error: cannot import version from parcoursup.")
print("Are you sure you are building in the correct folder?")
# FIXME revert when done uploading the first version to PyPI
# version = "0.1.dev4"
setup(name="parcoursup",
version=version,
description="ParcourSup.py : un clone en Python 3 de ParcoursSup, écrit à but didactique",
long_description=long_description,
author="Lilian Besson",
author_email="naereen AT crans DOT org".replace(" AT ", "@").replace(" DOT ", "."),
url="https://github.com/Naereen/ParcourSup.py/",
download_url="https://github.com/Naereen/ParcourSup.py/releases/",
license="MIT",
platforms=["GNU/Linux"],
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: Unix",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
keywords="parcoursup, python3, clone-libre, open-source, france, exemple, lycee, education-nationale, visualisations, algorithmes",
# py_modules=["parcoursup"],
packages=[
"parcoursup",
"parcoursup.ordreappel",
"parcoursup.propositions",
],
install_requires=[
"numpy",
"tqdm >= 4.0",
"jupyter",
"ipython",
"watermark",
"ipythonblocks",
"sphinx",
"sphinx_rtd_theme",
"recommonmark",
],
package_data={
'parcoursup': [
'LICENSE',
'README.md',
# FIXME add the xml data used in the tests
'donnees/*.xml',
'donnees/*.json',
]
},
# project_urls={ # Optional
# "Bug Reports": "https://github.com/Naereen/ParcourSup.py/issues",
# "Source": "https://github.com/Naereen/ParcourSup.py/tree/master/",
# },
)
# End of setup.py