-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (28 loc) · 1.25 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
from setuptools import setup, find_packages
import os
# Change project to project name here
# Choose relevant license as required, add necessary install_requires
# Automate the process of reading from requirements.txt
install_requires_list = []
reqs_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "requirements.txt")
with open(reqs_file, "r") as input_file:
for line in input_file:
# rstrip to remove the newline character after appending to an empty list.
install_requires_list.append(line.rstrip())
from our_project.version import __version__
link_to_use = "https://github.com/Nelson-Gon/project/archive/refs/tags/v"+__version__+".zip"
setup(name='project',
version=__version__,
description="Python Citations Generator",
url="http://www.github.com/Nelson-Gon/project",
download_url=link_to_use,
author='Nelson Gonzabato',
author_email='gonzabato@hotmail.com',
license='MIT',
keywords="web html academics citation science",
packages=find_packages(),
long_description=open('README.md', encoding="utf-8").read(),
long_description_content_type='text/markdown',
install_requires=install_requires_list,
python_requires='>=3.6',
zip_safe=False)