Skip to content

Commit

Permalink
Merge pull request #4 from octue/v0.0.2
Browse files Browse the repository at this point in the history
V0.0.2
  • Loading branch information
thclark authored Feb 9, 2020
2 parents cd4ba50 + b9bea65 commit ae92f17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ language: python

services:
- postgresql
- mysql

addons:
postgresql: "11"
Expand Down Expand Up @@ -35,11 +34,10 @@ install:
- pip install tox-travis
- pip install codecov

# Create MySQL and Postgres databases
# CreatePostgres database
before_script:
- psql --version
- psql -c 'CREATE DATABASE travis_ci_test;' -U postgres
- mysql -e 'CREATE DATABASE IF NOT EXISTS travis_ci_test;' -uroot

# Run the tests with tox
script:
Expand All @@ -50,7 +48,7 @@ after_success:
- coverage xml && codecov -f coverage.xml --commit=$TRAVIS_COMMIT

# Will deploy to pypi if the version in setup.py has been bumped, otherwise deployment skips.
# Note - the first deploy to pypi has to be done manually)
# Note - the first deploy to pypi has to be done manually
# deploy:
# provider: pypi
# skip_cleanup: true
Expand Down
2 changes: 1 addition & 1 deletion django_dag_cte/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AbstractNode(models.Model):
node_id = AutoField(primary_key=True)

# Parents-Children relationship (the `children` strand) using a Directed Acyclic Graph
parents = models.ManyToManyField('self', related_name='children', symmetrical=False)
parents = models.ManyToManyField('self', related_name='children', symmetrical=False, blank=True)

# TODO implement the recursive view for closure and ancestry
# Note this creates an unmanaged `*Closure` table which is a table view, unmanaged by Django.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name='django_dag_cte',
version='0.0.1',
version='0.0.2',
description='Directed Acyclic Graphs with in-database recursion using Common Table Expressions',
long_description=readme_text,
long_description_content_type="text/markdown",
Expand All @@ -38,7 +38,7 @@
],
include_package_data=True,
install_requires=[
'django>=2.1',
'django>=2.2',
'django-cte>=1.1.4',
],
keywords=['django', 'recursion', 'recursive', 'directed', 'acyclic', 'graph', 'dag', 'postgres', 'cte']
Expand Down

0 comments on commit ae92f17

Please sign in to comment.