-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (36 loc) · 1.46 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
import os
import pathlib
from setuptools import setup, find_packages
ROOT_PATH = pathlib.Path(__file__).parent
README = (ROOT_PATH / "README.md").read_text()
SCRIPTS_PATH = os.path.join("puppy_generator", "scripts")
SCRIPTS_LIST = [os.path.join(SCRIPTS_PATH, f) for f in os.listdir(SCRIPTS_PATH) if os.path.isfile(os.path.join(SCRIPTS_PATH, f))]
# Requirements
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
install_reqs = parse_requirements('requirements.txt')
# Package generation
setup(
name="puppy_generator",
version="0.1.0",
description="Puppy generator using IA",
long_description=README,
long_description_content_type="text/markdown",
keywords='puppy generator ia',
url="https://github.com/vgonisanz/puppy_generator",
author="vgonisanz",
author_email="[email protected]",
license="GPLv3+",
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
],
packages=["puppy_generator", "puppy_generator/scripts"],
include_package_data=True,
install_requires=install_reqs
)
# packages=["puppy_generator", "puppy_generator/scripts"],
#find_packages(include=['puppy_generator', 'puppy_generator/scripts/.*']),