Skip to content

Commit

Permalink
update package name
Browse files Browse the repository at this point in the history
  • Loading branch information
avokin committed Jun 21, 2020
1 parent 3a11fbc commit dfd5908
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 17 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ It's a library to work with YouTrack API. Right now it's useful to restore issue

## Sample dataset retrieval
To download activities and restore issues to defined state use the method
`idea/idea_data_set.py#idea_2019_03_20_to_idea_2020_03_20(snapshot_strategy)`.
`jetbrains_issues_dataset/idea/idea_data_set.py#idea_2019_03_20_to_idea_2020_03_20(snapshot_strategy)`.

Example:
```python
from idea import FirstAssigneeSnapshotStrategy
from idea import idea_2019_03_20_to_idea_2020_03_20
from jetbrains_issues_dataset.idea.first_assignee_snapshot_strategy import FirstAssigneeSnapshotStrategy
from jetbrains_issues_dataset.idea.idea_data_set import idea_2019_03_20_to_idea_2020_03_20
issues = idea_2019_03_20_to_idea_2020_03_20(FirstAssigneeSnapshotStrategy())
```

Or just check the file [examples/first_assignee.py](examples/first_assignee.py)

## Create your custom dataset
Just tune the file [youtrack/download_activities.py](idea/download_activities.py).
Just tune the file [youtrack/download_activities.py](jetbrains_issues_dataset/idea/download_activities.py).
It could be useful to read [Youtrack API Reference](https://www.jetbrains.com/help/youtrack/standalone/youtrack-rest-api-reference.html)
Also do not run downloader on production server.

Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from idea.idea_data_set import idea_2019_03_20_to_idea_2020_03_20
from jetbrains_issues_dataset.idea.idea_data_set import idea_2019_03_20_to_idea_2020_03_20
4 changes: 2 additions & 2 deletions examples/first_assignee.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from idea import FirstAssigneeSnapshotStrategy
from idea import idea_2019_03_20_to_idea_2020_03_20
from jetbrains_issues_dataset.idea.first_assignee_snapshot_strategy import FirstAssigneeSnapshotStrategy
from jetbrains_issues_dataset.idea.idea_data_set import idea_2019_03_20_to_idea_2020_03_20

issues = idea_2019_03_20_to_idea_2020_03_20(FirstAssigneeSnapshotStrategy())
print("Successfully retrieved {} issues".format(len(issues)))
3 changes: 0 additions & 3 deletions idea/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions jetbrains_issues_dataset/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from jetbrains_issues_dataset.idea.idea_data_set import idea_2019_03_20_to_idea_2020_03_20
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import urllib3
from dateutil.relativedelta import relativedelta

from idea.youtrack import YouTrack
from jetbrains_issues_dataset.idea.youtrack import YouTrack

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from idea.issue_created_snapshot_strategy import IssueCreatedSnapshotStrategy
from jetbrains_issues_dataset.idea.issue_created_snapshot_strategy import IssueCreatedSnapshotStrategy


class FirstAssigneeSnapshotStrategy(IssueCreatedSnapshotStrategy):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from idea.activity_manager import ActivityManager
from jetbrains_issues_dataset.idea.activity_manager import ActivityManager


class IdeaActivityManager(ActivityManager):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from tqdm import tqdm
import zipfile

from idea.idea_activity_manager import IdeaActivityManager
from idea.snapshot_strategy import SnapshotStrategy
from jetbrains_issues_dataset.idea.idea_activity_manager import IdeaActivityManager
from jetbrains_issues_dataset.idea.snapshot_strategy import SnapshotStrategy


def idea_2019_03_20_to_idea_2020_03_20(snapshot_manager=None):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from idea.snapshot_strategy import SnapshotStrategy
from jetbrains_issues_dataset.idea.snapshot_strategy import SnapshotStrategy


class IssueCreatedSnapshotStrategy(SnapshotStrategy):
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='jetbrains-issues-dataset',
packages=['idea'],
packages=['jetbrains_issues_dataset'],
version='1.0',
license='MIT',
description='Dataset of JetBrains issues',
Expand Down

0 comments on commit dfd5908

Please sign in to comment.