Skip to content

Commit 1951ccf

Browse files
committed
Change Python req
1 parent 4bd72df commit 1951ccf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

artifacts_metadata/artifacts_metadata_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def log(self, artifact_type: str, metadata: Optional[Dict[str, object]] = None)
3939
metadata = {}
4040
metadata["id"] = str(uuid.uuid1())
4141
metadata["artifactType"] = artifact_type
42-
metadata["timestamp"] = time.time_ns() // 1000000
42+
metadata["timestamp"] = int(round(time.time() * 1000))
4343
if "location" in metadata:
4444
metadata["location"] = metadata["location"].replace("{artifact-id}", metadata["id"])
4545
self.table.put_item(

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setuptools.setup(
44
name="artifacts-metadata",
5-
version="0.0.1",
5+
version="0.0.2",
66
author="Cosmin Catalin Sanda",
77
author_email="[email protected]",
88
description="A library for managing artifacts metadata in DynamoDB",
@@ -11,6 +11,6 @@
1111
"models.",
1212
url="https://github.com/audienceproject/artifacts-metadata-py",
1313
packages=setuptools.find_packages(),
14-
python_requires=">=3.8",
14+
python_requires=">=3.6",
1515
install_requires=["boto3>=1.0.0"]
1616
)

wercker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ box:
22
id: audienceproject/python
33
username: $DOCKERHUB_ACCOUNT
44
password: $DOCKERHUB_PASSWORD
5-
tag: 3.8
5+
tag: 3.6
66
no-response-timeout: 25
77
command-timeout: 25
88

@@ -11,7 +11,7 @@ build:
1111
- script:
1212
name: Setup virtualenv
1313
code: |
14-
virtualenv env --python=python3.8 --clear
14+
virtualenv env --python=python3.6 --clear
1515
env/bin/pip install pylint==2.4.4 boto3==1.0.0
1616
- script:
1717
name: PyLint
@@ -22,7 +22,7 @@ deploy:
2222
- script:
2323
name: Setup virtualenv
2424
code: |
25-
virtualenv env --python=python3.8 --clear
25+
virtualenv env --python=python3.6 --clear
2626
env/bin/pip install twine==3.1.1
2727
- script:
2828
name: Build library

0 commit comments

Comments
 (0)