Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: 2.0.0 #45

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c7466e5
feat: added setup for conventional commits
joeyaurel Mar 22, 2020
4dd2a60
docs: added contribution guidelines
joeyaurel Mar 22, 2020
8a06d52
feat(parser): added `to_gedcom_string` method
joeyaurel May 3, 2020
7587167
feat(github): added github push action
joeyaurel Jul 29, 2020
50134d6
feat(github): changed github push action
joeyaurel Jul 29, 2020
b409ba2
feat(github): added release workflow
joeyaurel Jul 29, 2020
9fc2468
chore(deps): added `bumpversion`
joeyaurel Jul 29, 2020
f9c2461
chore(deps): ran `pipenv lock`
joeyaurel Aug 7, 2020
944f991
feat(github): updated release action
joeyaurel Aug 7, 2020
c7d8417
feat(manifest): exclude test files from building
joeyaurel Aug 7, 2020
44aba4e
feat(versioning): added `bump2version`
joeyaurel Aug 7, 2020
5bafe20
feat(versioning): set version to 2.0.0 in setup.py
joeyaurel Aug 7, 2020
57d4459
feat(versioning): set version to 2.0.0 in VERSION
joeyaurel Aug 7, 2020
af11c4c
Bump version: 2.0.0 → 2.0.0-01
joeyaurel Aug 7, 2020
dee2701
feat(versioning): removed VERSION file
joeyaurel Aug 7, 2020
6c0cc14
chore(deps): ran `pipenv lock`
joeyaurel Aug 7, 2020
93a42bf
feat(versioning): set version to 1.0.0
joeyaurel Aug 7, 2020
ab73809
feat(versioning): commit and tag version
joeyaurel Aug 7, 2020
df8ddcc
Bump version: 1.0.0 → 2.0.0-dev0
joeyaurel Aug 7, 2020
50c41d3
docs: added docs on how to bump the version
joeyaurel Aug 7, 2020
eda4c13
chore: release 2.0.0-dev1
joeyaurel Aug 7, 2020
ee83a78
feat(manifest): added exclusion for bump2version
joeyaurel Aug 7, 2020
c9646b1
chore: release 2.0.0-dev2
joeyaurel Aug 7, 2020
5ae9ae7
feat(github): changed github release action
joeyaurel Aug 7, 2020
1d0eb83
chore: release 2.0.0-dev3
joeyaurel Aug 7, 2020
65c78c7
docs: added new documentation
joeyaurel Aug 7, 2020
309cd56
fix(parser.py): remove call to deleted method is_family()
joephayes Sep 10, 2020
6c538ee
Revert "fix(parser.py): remove call to deleted method is_family()"
Sep 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[bumpversion]
current_version = 2.0.0-dev3
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}-{release}{build}
{major}.{minor}.{patch}

[bumpversion:file:setup.py]

[bumpversion:part:release]
optional_value = prod
first_value = dev
values =
dev
prod

[bumpversion:part:build]
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
release:
types: [created]

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@master
- name: Set up Python 3.5
uses: actions/setup-python@v1
with:
python-version: 3.5

- name: Install pipenv
run: >-
pip install pipenv

- name: Install dependencies
run: >-
pipenv install -d

- name: Run tests
run: >-
pipenv run tox -e py35

- name: Build a binary wheel and a source tarball
run: >-
pipenv run python setup.py sdist bdist_wheel

- name: Publish distribution 📦 to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
run: >-
pipenv run twine upload dist/*

- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/
run: >-
pipenv run twine upload dist/*

- name: Generate docs
run: >-
pipenv run pdoc3 --html -o docs/ gedcom --force

- name: Publish docs
uses: EndBug/add-and-commit@v4
with:
author_name: ${{ secrets.AUTHOR_NAME }}
author_email: ${{ secrets.AUTHOR_EMAIL }}
message: "docs: added new documentation"
add: "docs/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89 changes: 89 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,92 @@ venv.bak/

# mypy
.mypy_cache/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.16.1
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Python Gedcom Parser: Contribution Guideline

1. Clone the repo
1. Make your changes
1. (Write appropriate tests within `tests/`)
1. Commit using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
1. [Open a pull request](https://github.com/madprime/python-gedcom/compare)
1. When checks for the PR fail consider making changes so that the checks pass

## About Conventional Commits

Git committing is done using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) with NPM.

Consider installing node packages with [NVM](https://github.com/nvm-sh/nvm) and start committing with `npm run commit`.
Git hooks installed via [Husky](https://github.com/typicode/husky) will do the rest.

How to install:

1. Use Node version `12.16.1` (or use [NVM](https://github.com/nvm-sh/nvm) and run `nvm use`)
1. Run `npm install` and then `npm run commit` to commit your changes
13 changes: 11 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ exclude docs
recursive-exclude docs *
recursive-exclude gedcom *.md

# Include GEDCOM test files
include tests/files/*.ged
# Exclude test files
recursive-exclude tests *

# Exclude Node related files
exclude .nvmrc
exclude commitlint.config.js
exclude package.json
exclude package-lock.json

# Exclude bump2version config
exclude .bumpversion.cfg
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ wheel = "*"
twine = "*"
tox = "*"
pdoc3 = "*"
bump2version = "*"

[packages]

Expand Down
Loading