Skip to content

Commit

Permalink
Add poetry to manage requirements and deploy process
Browse files Browse the repository at this point in the history
  • Loading branch information
dharvey-consbio committed Oct 12, 2021
1 parent bbbd5e6 commit db544c8
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ python:
- "3.8"
- "3.7"
- "3.6"
- "2.7"

install:
- "pip install six"
- "pip install mock"
- "pip install parserutils"
- "pip install frozendict==1.2"
- "pip install frozendict"
- "pip install coveralls"

script:
coverage run --source=gis_metadata -m unittest gis_metadata.tests.tests
coverage run --omit=gis_metadata/tests/*.py --source=gis_metadata -m unittest gis_metadata.tests.tests

after_success:
coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ XML parsers for GIS metadata that are designed to read in, validate, update and

This library is compatible with Python versions 2.7 and 3.4 through 3.6.

[![Build Status](https://travis-ci.org/consbio/gis-metadata-parser.png?branch=main)](https://travis-ci.org/consbio/gis-metadata-parser)
[![Build Status](https://api.travis-ci.com/consbio/gis-metadata-parser.png?branch=main)](https://app.travis-ci.com/github/consbio/gis-metadata-parser)
[![Coverage Status](https://coveralls.io/repos/github/consbio/gis-metadata-parser/badge.svg?branch=main)](https://coveralls.io/github/consbio/gis-metadata-parser?branch=main)

## Installation
Expand Down
106 changes: 106 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tool.poetry]
name = "gis-metadata-parser"
version = "2.0"
description = "Parser for GIS metadata standards including ArcGIS, FGDC and ISO-19115"
authors = ["dharvey-consbio <dani.harvey@consbio.org>"]
keywords = ["arcgis", "fgdc", "iso", "ISO-19115", "ISO-19139", "gis", "metadata", "parser", "xml", "gis_metadata", "gis_metadata_parser"]
readme = "README.md"
homepage = "https://github.com/consbio/gis-metadata-parser/"
repository = "https://github.com/consbio/gis-metadata-parser/"
license = "BSD"

[tool.poetry.dependencies]
python = "^3.6"
frozendict = "^2.0"
parserutils = "^2.0.1"

[tool.poetry.dev-dependencies]
mock = "*"
pipdeptree = "*"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ def run(self):

setup(
name='gis-metadata-parser',
description='Parser for GIS metadata standards including FGDC and ISO-19115',
description='Parser for GIS metadata standards including ArcGIS FGDC and ISO-19115',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='arcgis,fgdc,iso,ISO-19115,ISO-19139,gis,metadata,parser,xml,gis_metadata,gis_metadata_parser',
version='1.2.6',
packages=[
'gis_metadata', 'gis_metadata.tests'
],
version='2.0',
packages=['gis_metadata'],
install_requires=[
'frozendict==1.2', 'parserutils>=1.2.3', 'six>=1.9.0'
'frozendict>=2.0', 'parserutils>=2.0.1'
],
tests_require=['mock'],
url='https://github.com/consbio/gis-metadata-parser',
Expand Down

0 comments on commit db544c8

Please sign in to comment.