-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #394 from jdebacker/setup
Updates to `setup.py`
- Loading branch information
Showing
7 changed files
with
42 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
from ccc.data import * | ||
from ccc.calculator import * | ||
|
||
__version__ = "1.5.0" | ||
__version__ = "1.5.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[build-system] | ||
requires = ["setuptools>=64.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
# Configuration for Black. | ||
|
||
# NOTE: you have to use single-quoted strings in TOML for regular expressions. | ||
# It's the equivalent of r-strings in Python. Multiline strings are treated as | ||
# verbose regular expressions by Black. Use [ ] to denote a significant space | ||
# character. | ||
|
||
[tool.black] | ||
line-length = 79 | ||
target-version = ["py310", "py311", "py312"] | ||
include = '\.pyi?$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,32 @@ | ||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
import setuptools | ||
|
||
with open("README.md") as f: | ||
longdesc = f.read() | ||
with open("README.md", "r", encoding="utf-8") as fh: | ||
longdesc = fh.read() | ||
|
||
version = "1.5.0" | ||
|
||
config = { | ||
"description": "CCC: A Cost of Capital Calculator", | ||
"url": "https://github.com/PSLmodels/Cost-of-Capital-Calculator", | ||
"download_url": "https://github.com/PSLmodels/Cost-of-Capital-Calculator", | ||
"long_description_content_type": "text/markdown", | ||
"long_description": longdesc, | ||
"version": version, | ||
"license": "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", | ||
"packages": ["ccc"], | ||
"include_package_data": True, | ||
"name": "cost-of-capital-calculator", | ||
"install_requires": ["taxcalc", "pandas", "bokeh", "numpy", "paramtools"], | ||
"classifiers": [ | ||
setuptools.setup( | ||
description="CCC: A Cost of Capital Calculator", | ||
url="https://github.com/PSLmodels/Cost-of-Capital-Calculator", | ||
download_url="https://github.com/PSLmodels/Cost-of-Capital-Calculator", | ||
long_description_content_type="text/markdown", | ||
long_description=longdesc, | ||
version="1.5.1", | ||
license="CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", | ||
packages=["ccc"], | ||
include_package_data=True, | ||
name="cost-of-capital-calculator", | ||
install_requires=["taxcalc", "pandas", "bokeh", "numpy", "paramtools"], | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Natural Language :: English", | ||
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
"tests_require": ["pytest"], | ||
} | ||
|
||
setup(**config) | ||
tests_require=["pytest"], | ||
) |