Skip to content

Commit

Permalink
Dev (#3)
Browse files Browse the repository at this point in the history
* start refactoring

* continue refactoring, + docs

* update readme

Signed-off-by: Caleb Grant <[email protected]>

* update docs, lint and format

Signed-off-by: Caleb Grant <[email protected]>

* cleanup, fix build issues

Signed-off-by: Caleb Grant <[email protected]>

* update ci python versions

Signed-off-by: Caleb Grant <[email protected]>

---------

Signed-off-by: Caleb Grant <[email protected]>
  • Loading branch information
geocoug authored Jul 20, 2024
1 parent 902ef2b commit be35ef5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
services:
postgres:
image: postgis/postgis:16-3.4-alpine
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@ authors = [{ name = "Caleb Grant", email = "[email protected]" }]
description = "A Python library for upserting data into postgres."
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
requires-python = ">=3.10,<3.12"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
]
dependencies = ["psycopg2-binary >= 2.9.9", "tabulate >= 0.9.0"]
dependencies = ["psycopg2-binary==2.9.9", "tabulate==0.9.0"]
keywords = ["postgresql", "postgres", "dbms", "etl", "upsert", "database"]

[project.scripts]
pg_upsert = "pg_upsert.pg_upsert:main"
pg_upsert = "pg_upsert:cli"

[tool.setuptools.dynamic]
version = { attr = "pg_upsert.pg_upsert.__version__" }
version = { attr = "pg_upsert._version.__version__" }

[project.urls]
Homepage = "https://github.com/geocoug/pg_upsert"
Expand Down
46 changes: 5 additions & 41 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,66 +1,36 @@
accessible-pygments==0.0.5
alabaster==0.7.16
annotated-types==0.7.0
Babel==2.15.0
backports.tarfile==1.2.0
beautifulsoup4==4.12.3
bracex==2.4
build==1.2.1
bump-my-version==0.21.1
certifi==2024.7.4
cfgv==3.4.0
charset-normalizer==3.3.2
click==8.1.7
coverage==7.6.0
distlib==0.3.8
docutils==0.20.1
filelock==3.14.0
identify==2.5.36
filelock==3.15.4
identify==2.6.0
idna==3.7
imagesize==1.4.1
importlib_metadata==8.0.0
iniconfig==2.0.0
jaraco.classes==3.4.0
jaraco.context==5.3.0
jaraco.functools==4.0.1
Jinja2==3.1.4
keyring==25.2.1
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
more-itertools==10.3.0
nh3==0.2.18
nodeenv==1.8.0
nodeenv==1.9.1
packaging==24.1
pkginfo==1.10.0
platformdirs==4.2.2
pluggy==1.5.0
polars==1.2.0
pre-commit==3.7.1
prompt-toolkit==3.0.36
psycopg2-binary==2.9.9
pydantic==2.7.3
pydantic-settings==2.3.1
pydantic_core==2.18.4
pydata-sphinx-theme==0.15.4
Pygments==2.18.0
pyproject_hooks==1.1.0
pytest==8.2.2
pytest-cov==5.0.0
python-dotenv==1.0.1
PyYAML==6.0.1
questionary==2.0.1
readme_renderer==44.0
requests==2.32.3
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==13.7.1
rich-click==1.8.3
ruff==0.5.2
ruff==0.5.3
snowballstemmer==2.2.0
soupsieve==2.5
Sphinx==7.4.6
sphinx-book-theme==1.1.3
sphinx-copybutton==0.5.2
sphinx-rtd-theme==2.0.0
sphinxcontrib-applehelp==1.0.8
Expand All @@ -71,11 +41,5 @@ sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.7
sphinxcontrib-serializinghtml==1.1.10
tabulate==0.9.0
tomlkit==0.12.5
twine==5.1.1
typing_extensions==4.12.2
urllib3==2.2.2
virtualenv==20.26.2
wcmatch==8.5.2
wcwidth==0.2.13
zipp==3.19.2
virtualenv==20.26.3

0 comments on commit be35ef5

Please sign in to comment.