-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (40 loc) · 1.43 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
"""Setup script to install a module."""
import os
from setuptools import setup, find_packages
## VERSION
# This can be loaded from the version file in the module
# Note that to note have to install this file, we read and execute the file
with open(os.path.join('modcode', 'version.py')) as version_file:
exec(version_file.read())
## LONG DESCRIPTION
# This can be loaded from the README, is written in RST
with open('README.rst') as readme_file:
long_description = readme_file.read()
## DEPENDENCIES
# Thsi can be loaded from the requirements file, if it's up to date / complete
with open("requirements.txt") as requirements_file:
install_requires = requirements_file.read().splitlines()
# Do the setup
setup(
name = 'NAME',
version = __version__,
description = 'Module for DOING THINGS.',
long_description = long_description,
python_requires = '>=3.X',
maintainer = 'MAINTAINER NAME',
maintainer_email = 'MAINTAINER EMAIL',
url = 'https://github.com/ORGNAME/REPONAME',
packages = find_packages(),
license = 'LICENSE TYPE',
classifiers = [
# List of metadata about the project
],
platforms = 'any',
project_urls = {
# Can include links for: 'Documentation', 'Bug Reports', 'Source'
},
download_url = 'https://github.com/ORGNAME/REPONAME/releases',
keywords = ['LIST', 'OF', 'KEYWORDS'],
install_requires = install_requires,
tests_require = ['pytest'],
)