forked from AaronWard/covidify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (39 loc) · 1.29 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
# -*- coding: utf-8 -*-
"""
Setup file for covidify.
Use setup.cfg to configure your project.
This file was generated with PyScaffold 3.2.2.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: https://pyscaffold.org/
"""
import sys
import os
import re
from pkg_resources import VersionConflict, require
from setuptools import setup
try:
require('setuptools>=38.3')
except VersionConflict:
print("Error: version of setuptools is too old (<38.3)!")
sys.exit(1)
def get_deps():
default = open('requirements.txt', 'r').readlines()
new_pkgs = []
for pkg in default:
new_pkgs.append(pkg.strip())
return new_pkgs
with open("README.md", "r") as fh:
long_description = fh.read()
if __name__ == "__main__":
setup(install_requires=get_deps(),
author="Aaron Ward",
author_email="[email protected]",
description="Stay up to date with corona virus data - Download and generate reports",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/AaronWard/covid-19-analysis",
use_pyscaffold=False,
package_data={
'': ['*.txt', '*.csv', '*.yaml', '*.yml']
}
)