generated from canadian-coding/python-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (52 loc) · 1.99 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
"""Contains all the configuration for the package on pip"""
import setuptools
def get_content(*filename:str) -> str:
""" Gets the content of a file or files and returns
it/them as a string
Parameters
----------
filename : (str)
Name of file or set of files to pull content from
(comma delimited)
Returns
-------
str:
Content from the file or files
"""
content = ""
for file in filename:
with open(file, "r") as full_description:
content += full_description.read()
return content
setuptools.setup(
name = "ezspreadsheet",
version = "0.2.2",
author = "Kieran Wood",
author_email = "[email protected]",
description = "A simple API to store/load python objects to/from spreadsheets",
long_description = get_content("README.md", "CHANGELOG.md"),
long_description_content_type = "text/markdown",
project_urls = {
"API Docs" : "https://kieranwood.ca/ezspreadsheet",
"Source" : "https://github.com/Descent098/ezspreadsheet",
"Bug Report": "https://github.com/Descent098/ezspreadsheet/issues/new?assignees=Descent098&labels=bug&template=bug_report.md&title=%5BBUG%5D",
"Feature Request": "https://github.com/Descent098/ezspreadsheet/issues/new?assignees=Descent098&labels=enhancement&template=feature_request.md&title=%5BFeature%5D",
"Roadmap": "https://github.com/Descent098/ezspreadsheet/projects"
},
include_package_data = True,
py_modules = ["ezspreadsheet"],
install_requires = [
"openpyxl", # Used for writing excel files
"colored", # Used to colour output for emphasis
],
extras_require = {
"dev" : ["nox", # Used to run automated processes
"pytest", # Used to run the test code in the tests directory
],
},
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta"
],
)