-
Notifications
You must be signed in to change notification settings - Fork 0
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 #9 from washingtonpost/release/1.1.0
updated setup.py and changelog
- Loading branch information
Showing
11 changed files
with
359 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: pre-commit | ||
on: | ||
pull_request: | ||
branches-ignore: | ||
- main | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- uses: pre-commit/[email protected] |
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,38 @@ | ||
files: \.py$ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.5 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
args: ["--profile", "black", --line-length=120] | ||
|
||
# black | ||
- repo: https://github.com/ambv/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
args: # arguments to configure black | ||
- --line-length=120 | ||
language_version: python3 | ||
|
||
# flake8 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: flake8 | ||
args: # arguments to configure flake8 | ||
# making flake8 line length compatible with black | ||
- "--max-line-length=120" | ||
- "--max-complexity=18" | ||
- "--select=B,C,E,F,W,T4,B9" | ||
# these are errors that will be ignored by flake8 | ||
# definitions here | ||
# https://flake8.pycqa.org/en/latest/user/error-codes.html | ||
- "--ignore=E266,E501,W503" |
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 |
---|---|---|
|
@@ -6,4 +6,8 @@ autopep8 | |
betamax | ||
betamax-serializers | ||
pylint | ||
tox | ||
tox | ||
black | ||
isort | ||
pre-commit | ||
pytest |
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,52 +1,51 @@ | ||
from codecs import open | ||
import os | ||
from codecs import open | ||
|
||
from setuptools import find_packages, setup | ||
|
||
INSTALL_REQUIRES = ( | ||
'cvxpy<=1.2.0' | ||
) | ||
INSTALL_REQUIRES = "cvxpy<=1.2.0" | ||
|
||
THIS_FILE_DIR = os.path.dirname(__file__) | ||
|
||
LONG_DESCRIPTION = '' | ||
LONG_DESCRIPTION = "" | ||
# Get the long description from the README file | ||
with open(os.path.join(THIS_FILE_DIR, 'README.md'), encoding='utf-8') as f: | ||
with open(os.path.join(THIS_FILE_DIR, "README.md"), encoding="utf-8") as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
||
# The full version, including alpha/beta/rc tags | ||
RELEASE = '1.0.3' | ||
RELEASE = "1.1.0" | ||
# The short X.Y version | ||
VERSION = '.'.join(RELEASE.split('.')[:2]) | ||
VERSION = ".".join(RELEASE.split(".")[:2]) | ||
|
||
PROJECT = 'elex-solver' | ||
AUTHOR = 'The Wapo Newsroom Engineering Team' | ||
COPYRIGHT = '2021, {}'.format(AUTHOR) | ||
PROJECT = "elex-solver" | ||
AUTHOR = "The Wapo Newsroom Engineering Team" | ||
COPYRIGHT = "2021, {}".format(AUTHOR) | ||
|
||
|
||
setup( | ||
name=PROJECT, | ||
version=RELEASE, | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3.7' | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.7", | ||
], | ||
description='A package for optimization solvers', | ||
description="A package for optimization solvers", | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
license='MIT', | ||
packages=find_packages('src', exclude=['docs', 'tests']), | ||
package_dir={'': 'src'}, | ||
license="MIT", | ||
packages=find_packages("src", exclude=["docs", "tests"]), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=INSTALL_REQUIRES, | ||
command_options={ | ||
'build_sphinx': { | ||
'project': ('setup.py', PROJECT), | ||
'version': ('setup.py', VERSION), | ||
'release': ('setup.py', RELEASE) | ||
"build_sphinx": { | ||
"project": ("setup.py", PROJECT), | ||
"version": ("setup.py", VERSION), | ||
"release": ("setup.py", RELEASE), | ||
} | ||
}, | ||
py_modules=['elexsolver'] | ||
) | ||
py_modules=["elexsolver"], | ||
) |
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
Oops, something went wrong.