Skip to content

Commit

Permalink
Convert package to poetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
mscavnicky committed Aug 15, 2020
1 parent 07e1462 commit 2acc17b
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ tag = True
message = Release version {new_version}
current_version = 0.0.7

[bumpversion:file:setup.py]
[bumpversion:file:pyproject.toml]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
build
dist
*.egg-info
Pipfile.lock
poetry.lock
18 changes: 9 additions & 9 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ blocks:
jobs:
- name: run
commands:
- pip3 install pipenv
- pipenv install --dev
- pipenv run python -m unittest --verbose
- pip3 install poetry
- poetry install
- poetry run python -m unittest --verbose
- name: test-3.7
dependencies: []
task:
Expand All @@ -41,9 +41,9 @@ blocks:
jobs:
- name: run
commands:
- pip3 install pipenv
- pipenv install --dev
- pipenv run python -m unittest --verbose
- pip3 install poetry
- poetry install
- poetry run python -m unittest --verbose
- name: test-3.8
dependencies: []
task:
Expand All @@ -60,6 +60,6 @@ blocks:
jobs:
- name: run
commands:
- pip3 install pipenv
- pipenv install --dev
- pipenv run python -m unittest --verbose
- pip3 install poetry
- poetry install
- poetry run python -m unittest --verbose
22 changes: 0 additions & 22 deletions Pipfile

This file was deleted.

8 changes: 0 additions & 8 deletions bin/bumpversion

This file was deleted.

3 changes: 0 additions & 3 deletions bin/package

This file was deleted.

11 changes: 10 additions & 1 deletion bin/release
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#!/bin/bash

pipenv run twine upload dist/*
if [[ $# -eq 0 ]]; then
echo "Please specify a version bump - major, minor, or patch."
exit 1
fi

poetry run bumpversion $1 --verbose

poetry build

poetry publish
2 changes: 1 addition & 1 deletion bin/test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

pipenv run python -m unittest $@
poetry run python -m unittest $@
31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[tool.poetry]
name = "hypotonic"
version = "0.0.7"
description = "Fast asynchronous web scraper with minimalist API."
authors = ["Martin Scavnicky <[email protected]>"]
license = "MIT"
homepage = "https://github.com/mscavnicky/hypotonic"
readme = "README.md"
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Markup :: HTML'
]

[tool.poetry.dependencies]
python = "^3.6"
parsel = ">=1.2.0"
lxml = ">=4.1.1"
cssselect = ">=1.0.3"
aiohttp = ">=3.0.9"

[tool.poetry.dev-dependencies]
bumpversion = ">=0.5.0"
vcrpy = ">=3.0.0"


[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
22 changes: 0 additions & 22 deletions setup.py

This file was deleted.

0 comments on commit 2acc17b

Please sign in to comment.