Skip to content

Commit

Permalink
Release 0.0.0a6 (#17)
Browse files Browse the repository at this point in the history
* Update license to MIT

* Update license to MIT

* Update license to MIT

* DS-1: Add issue templates

* DS-1: Add feature request template

* DS-1: Add question template

* DS-1: Add bug report template

* DS-12: Add Code of Conduct (#13)

* WIP: DS-14: Add serialization and deserialization to fields. (#15)

* DS-14: Add serialization and deserialization to fields.

* DS-14: Add pytest. Change test layout.

* DS-14: Add mapper. Fix PR bug.

* DS-14: Fix field_name not setting right with new mapper.

* Bump version to 0.0.0a6

* Add better badges
  • Loading branch information
JavierLuna authored Oct 6, 2019
1 parent 7e2ef67 commit 0b6243d
Show file tree
Hide file tree
Showing 33 changed files with 659 additions and 366 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
name: Run tests
command: |
. env/bin/activate
make test
make tests
77 changes: 77 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when
an individual is representing the project or its community in public spaces.
Examples of representing a project or community include using an official
project e-mail address, posting via an official social media account, or acting
as an appointed representative at an online or offline event. Representation of
a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [jlunadevel@gmail.com](mailto:jlunadevel@gmail.com). All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

26 changes: 17 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
.PHONY: test
.PHONY: tests

test: export DATASTORE_EMULATOR_HOST=0.0.0.0:8081
test:
python -m unittest discover tests/
e2e-tests: export DATASTORE_EMULATOR_HOST=0.0.0.0:8081
e2e-tests:
pipenv run py.test tests/e2e

unit-tests:
pipenv run py.test tests/unit

legacy-tests: export DATASTORE_EMULATOR_HOST=0.0.0.0:8081
legacy-tests:
pipenv run py.test tests/legacy

tests: unit-tests legacy-tests e2e-tests

coverage:
PYTHONPATH=. coverage run --source datastorm setup.py test
Expand All @@ -13,7 +22,7 @@ docker-build:
docker build -t datastorm-test-env:255.0.0-3.6.9 .circleci/images

docker-run: docker-build
docker run --name datastorm-test-env --publish 8081:8081 datastorm-test-env:255.0.0-3.6.9
docker run --rm --name datastorm-test-env --publish 8081:8081 datastorm-test-env:255.0.0-3.6.9

docker-tag:
docker tag datastorm-test-env:255.0.0-3.6.9 javierluna/datastorm-test-env:255.0.0-3.6.9
Expand All @@ -25,11 +34,10 @@ docker-clean:
docker stop datastore-test-env
docker rm datastore-test-env

docker-test: docker-build
docker run -d --name datastore-test-env --publish 8081:8081 datastorm-test-env:255.0.0-3.6.9
docker-tests: docker-build
docker run --rm -d --name datastore-test-env --publish 8081:8081 datastorm-test-env:255.0.0-3.6.9
sleep 5
$(MAKE) test
$(MAKE) docker-clean
$(MAKE) tests


clean:
Expand Down
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ google-cloud-datastore = "*"
twine = "*"
coverage = "*"
mkdocs = "*"
pytest = "*"
pytest-mock = "*"
pytest-cov = "*"

[requires]
python_version = "3.6"
Loading

0 comments on commit 0b6243d

Please sign in to comment.