Skip to content

Commit

Permalink
now using flit for dependencies, build and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
iwpnd committed Feb 24, 2020
1 parent 5a4e8e6 commit c47d2d7
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 33 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install flit
flit install --symlink
python -c "from flashgeotext.geotext import GeoText"
- name: Test with pytest
run: |
pip install pytest
pytest . -v
- name: Generate coverage report
run: |
pip install pytest-cov
pytest --cov=flashgeotext/ --cov-report=xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ site_url: https://flashgeotext.iwpnd.pw/
theme:
name: 'material'
palette:
primary: 'indigo'
accent: 'indigo'
primary: 'white'
accent: 'yellow'
logo: 'img/logo.png'
favicon: 'img/ms-icon-310x310.png'

Expand Down
48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[build-system]
requires = ["flit"]
build-backend = "flit.buildapi"

[tool.flit.metadata]
module = "flashgeotext"
author = "Benjamin Ramser"
author-email = "ahoi@iwpnd.pw"
home-page = "https://github.com/iwpnd/flashgeotext"
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
]
requires = [
"flashtext==2.7",
"loguru==0.4.1",
"pydantic==1.4"
]
description-file = "readme.md"
requires-python = ">=3.6"

[tool.flit.metadata.urls]
Documentation = "https://flashgeotext.iwpnd.pw/"

[tool.flit.metadata.requires-extra]
test = [
"pytest >=4.0.0",
"pytest-cov"
]
doc = [
"awscli",
"mkdocs",
"mkdocs-material",
"markdown-include"
]

dev = []
all = []
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

25 changes: 0 additions & 25 deletions setup.py

This file was deleted.

0 comments on commit c47d2d7

Please sign in to comment.