Skip to content

Commit

Permalink
Fix version import
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Aug 23, 2022
1 parent 1ec70f9 commit 2f94ced
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions goldencopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
import logging
import re

from py2neo import Graph

version = '1.2'
__version__ = '1.2'


def args_parser():
parser = argparse.ArgumentParser(
description=f"GoldenCopy v{version} - Copy the properties and groups of a user from neo4j to create an identical golden ticket")
description=f"GoldenCopy v{__version__} - Copy the properties and groups of a user from neo4j to create an identical golden ticket")
# Logging config
parser.add_argument('-v', '--verbose', action="count", default=0, dest="verbosity", help="Enable verbose logging")
# Neo4j connexion config
Expand Down Expand Up @@ -253,12 +251,14 @@ def main():
else:
logger.setLevel(logging.DEBUG)
# process
logger.warning(f"GoldenCopy v{version}")
logger.warning(f"GoldenCopy v{__version__}")
g = getNeo4jConnection()
user = findUser(g)
groups = findGroupFromObj(g, user)
forgeTicket(user, groups)


if __name__ == '__main__':
from py2neo import Graph

main()
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from setuptools import setup, find_packages
from goldencopy import version
from setuptools import setup
from goldencopy import __version__
import pathlib

here = pathlib.Path(__file__).parent.resolve()
Expand All @@ -9,7 +9,7 @@

setup(
name='GoldenCopy',
version=version,
version=__version__,
license='GNU',
author="Dramelac",
author_email='[email protected]',
Expand All @@ -29,7 +29,7 @@
"Operating System :: OS Independent",
],
install_requires=[
'py2neo>=2021.2.3',
'py2neo>=2021.2.3'
],
py_modules=["goldencopy"],
entry_points={
Expand Down

0 comments on commit 2f94ced

Please sign in to comment.