Skip to content

Commit

Permalink
Merge pull request #8 from the-scouts/packaging
Browse files Browse the repository at this point in the history
Packaging
  • Loading branch information
AA-Turner committed Feb 8, 2021
2 parents 20bfbc1 + 1d22fbc commit fa25b2f
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compass/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
app = FastAPI(
title="Compass Interface — the unofficial Compass API",
description=long_description,
version="0.8.7",
version="0.21.0",
on_shutdown=[redis_handler.on_shutdown],
openapi_tags=open_api_tag_metadata,
)
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python>=3.9

# Compass-Interface Core
- compass-interface-core>=0.3.0
- compass-interface-core>=0.5.0

# Transforming
# - numba>0.52 # Numba==0.52 does not support python 3.9!
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Build system requirements.
[build-system]
requires = ["setuptools>=41.0", "wheel"] #"setuptools-scm",
build-backend = "setuptools.build_meta"

# Black configuration
[tool.black]
line-length = 132 # 120*1.1
target-version = ["py38"] # Remember to change this if we change pins from Python 3.9! TODO black does not yet support 3.9 (13-01-2021)

# isort configuration
[tool.isort]
sections = ['FUTURE', 'STDLIB', 'THIRDPARTY', 'COMPASS', 'FIRSTPARTY', 'LOCALFOLDER']
known_compass = ['compass']
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Compass-Interface Core
compass-interface-core>=0.3.0
compass-interface-core>=0.5.0

# Transforming
numba
Expand Down
47 changes: 47 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# setuptools metadata
[metadata]
name = compass-interface
version = 0.21.0
# version = attr: src.VERSION
description = Providing a unified (well-documented) API to the Scouts' national membership system, Compass.
long_description = file: README.md
long_description_content_type= text/markdown
keywords =
API, scouts
author = Adam Turner
url = https://github.com/the-scouts/compass-interface
license = MIT
license_files = LICENSE
# Classifiers list: https://pypi.org/classifiers/
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development
Topic :: Utilities
platforms = any
# setuptools options
[options]
packages = find_namespace:
include_package_data = True
python_requires = >=3.9
install_requires =
compass-interface-core>=0.5.0
numba
pandas
pyarrow
fastapi
python-jose
aioredis
python-multipart
[options.packages.find]
# consider moving to src/ layout to remove this:
exclude=js

0 comments on commit fa25b2f

Please sign in to comment.